MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel.Validation Namespace / ValidationUtils Class / ValidateLength Method / ValidateLength(Length,Length[]) Method
A GrapeCity.ActiveReports.PageReportModel.Length value to validate.
The additional allowed GrapeCity.ActiveReports.PageReportModel.Length values.
Example

ValidateLength(Length,Length[]) Method
Validates a length value against the RDL defined min/max length defaults ("0in","160in").
Syntax
'Declaration
 
Public Overloads Shared Function ValidateLength( _
   ByVal value As Length, _
   ByVal ParamArray extraValues() As Length _
) As Length
 

Parameters

value
A GrapeCity.ActiveReports.PageReportModel.Length value to validate.
extraValues
The additional allowed GrapeCity.ActiveReports.PageReportModel.Length values.
Exceptions
ExceptionDescription
Throws if the value is out of range limit.
Example
Length value = new Length("2in");
ValidationUtils.ValidateLength(value, new Length("200in"));
See Also